using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

class BloodOnTheSurface : Game
{
    GraphicsDeviceManager graphics;
    SpriteBatch spriteBatch;
    Texture2D dinges;
    SpriteFont font;
    Vector2 coord = new Vector2(300, 100);
    int ding = 0;

    static void Main()
    {
        BloodOnTheSurface game = new BloodOnTheSurface();
        game.Run();
    }

    public BloodOnTheSurface()
    {
        Content.RootDirectory = "Content";
        graphics = new GraphicsDeviceManager(this);
    }

    protected override void LoadContent()
    {
        spriteBatch = new SpriteBatch(GraphicsDevice);
        dinges = Content.Load<Texture2D>("dinges");
        font = Content.Load<SpriteFont>("Font");
    }

    protected override void Update(GameTime gameTime)
    {
        HandleInput();
    }

    protected override void Draw(GameTime gameTime)
    {
        GraphicsDevice.Clear(new Color(0, 0, 50));
        spriteBatch.Begin();
        spriteBatch.Draw(dinges, coord, Color.White);
        spriteBatch.DrawString(font, "Scroll Wheel Value: " + ding.ToString(), Vector2.Zero, Color.White);
        spriteBatch.End();
    }

    protected void HandleInput()
    {
        MouseState mouseState = Mouse.GetState();
        KeyboardState keyState = Keyboard.GetState();
        if (keyState.IsKeyDown(Keys.A))
            coord.X--;
        if (keyState.IsKeyDown(Keys.D))
            coord.X++;
        if (keyState.IsKeyDown(Keys.S))
            coord.Y++;
        if (keyState.IsKeyDown(Keys.W))
            coord.Y--;
        ding = mouseState.ScrollWheelValue;
    }
}